'use strict';

/**
 * 设备底库管理，巨龙_jHD23设备
 */
const mongoose = require('mongoose'), Schema = mongoose.Schema;
const OPEN_STATUS = 1, CLOSE_STATUS = 2;
const photoLibrarySchema = new Schema({
    device_id: {type: String},
    device_ip: {type: String}, //ip地址
    device_uuid: {type: String}, //uuid
    device_mac: {type: String}, //mac地址
    device_type: {type: Number},//设备类型
    device_code: {type: String}, //设备编号
    device_address: {type: String},//设备地址
    device_status: {type: Number},//设备状态 1正常 2关闭或再重启 3已配置,连接异常 4未配置
    device_group: {type: Number},//设备组
    s_n: {type: String}, //序列号
    channel_num: {type: Number},//通道数
    web_version: {type: String},//页面版本
    core_version: {type: String},//主程序版本
    version_date: {type: String},//版本日期
    http_version: {type: String},//HTTP协议版本
    http_date: {type: String},//HTTP协议版本日期
    register_session: {type: String},//注册Session

    user_photo:{type:String},//底库照片

})

module.exports = mongoose.model('photoLibrarySchema', photoLibrarySchema, 'photoLibrary')